package com.oktest.measure.item.home

import com.chad.library.adapter.base.binder.QuickItemBinder
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.oktest.measure.R
import com.oktest.measure.entity.TypeTitle
import kotlinx.android.synthetic.main.item_home_recycler_title_view.view.*

/**
 * @Author hhh
 * @Date 2020/9/17
 */
class HomeTitleBinder : QuickItemBinder<TypeTitle>() {
    override fun getLayoutId(): Int {
        return R.layout.item_home_recycler_title_view
    }

    override fun convert(holder: BaseViewHolder, data: TypeTitle) {
        holder.itemView.apply {
            tvSectionTitle.text = data.title
        }
    }
}